package com.lhf.warnsend.warnsendjson.message;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * <p></p>
 *
 * @author liuhf
 * @createTime 2021/9/2 16:47
 * @since 1.0
 */
@ConfigurationProperties(prefix = "sms")
public class SmsProperties {

    /**
     * 短信类型 1、通知型短信 2、交互型短信
     */
    private Integer smsType = 1;

    /**
     * 发送方式 1：立即发送 2：预约发送
     */
    private Integer sendType = 1;

    /**
     * 渠道号码
     */
    private String channel;

    /**
     * 交易编码
     */
    private String transCode;

    /**
     * 核心渠道号
     */
    private String channelNo;

    /**
     * 用户身份证号码
     */
    private String IdNo;

    /**
     * 贷款品种
     */
    private String loanType;

    /**
     * 请求地址
     */
    private String url;

    /**
     * 数字签名
     */
    private String sign;


    /**
     * 秘钥
     */
    private String key;

    /**
     * 模板编号
     */
    private String templateNo;


    /**
     * 短信参数
     */
    private Map<String, String> smsParams;

    public Integer getSmsType() {
        return smsType;
    }

    public void setSmsType(Integer smsType) {
        this.smsType = smsType;
    }

    public Integer getSendType() {
        return sendType;
    }

    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getTransCode() {
        return transCode;
    }

    public void setTransCode(String transCode) {
        this.transCode = transCode;
    }

    public String getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(String channelNo) {
        this.channelNo = channelNo;
    }

    public String getIdNo() {
        return IdNo;
    }

    public void setIdNo(String idNo) {
        IdNo = idNo;
    }

    public String getLoanType() {
        return loanType;
    }

    public void setLoanType(String loanType) {
        this.loanType = loanType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getTemplateNo() {
        return templateNo;
    }

    public void setTemplateNo(String templateNo) {
        this.templateNo = templateNo;
    }

    public Map<String, String> getSmsParams() {
        return smsParams;
    }

    public void setSmsParams(Map<String, String> smsParams) {
        this.smsParams = smsParams;
    }
}
